package com.wufeng.model.SpringBootModel.mapper;

import com.wufeng.model.SpringBootModel.model.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {

    List<User> findAll();

    User findById(Long id);

    User findByName(String name);

    User findByColumn(String column, String value);

    int insertUser(User user);

    void deleteUser(Long id);

    int updateUser(User user);

}
